package com.sgcc.operate.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sgcc.common.core.annotation.Excel;
import com.sgcc.common.core.web.domain.BaseEntity;

/**
 * 消息推送管理对象 o_msg_send
 * 
 * @author sgcc
 * @date 2021-03-26
 */
public class OMsgSend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 消息推送id */
    @Excel(name = "消息推送id")
    private String id;

    /** 消息名称 */
    @Excel(name = "消息名称")
    private String msgname;

    /** 人群规则定义id */
    @Excel(name = "人群规则定义id")
    private String crowdid;

    /** 消息模板id */
    @Excel(name = "消息模板id")
    private String msgid;

    /** 发送时间类型 */
    @Excel(name = "发送时间类型")
    private String sendtimetype;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "发送时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date sendtime;

    /** 发送数量 */
    @Excel(name = "发送数量")
    private Long sendnum;

    /** 成功数量 */
    @Excel(name = "成功数量")
    private Long succnum;

    /** 维护人 */
    @Excel(name = "维护人")
    private String modifyemp;

    /** 维护时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "维护时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date modifytime;

    /** 维护人单位 */
    @Excel(name = "维护人单位")
    private String modifyorg;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    @Excel(name = "逻辑删除标记", readConverterExp = "0=：显示；1：隐藏")
    private String delFlag;

    private String deptName;

    private String createByName;

    private String ruleName;

    private String msgtype;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMsgname(String msgname) 
    {
        this.msgname = msgname;
    }

    public String getMsgname() 
    {
        return msgname;
    }
    public void setCrowdid(String crowdid) 
    {
        this.crowdid = crowdid;
    }

    public String getCrowdid() 
    {
        return crowdid;
    }
    public void setMsgid(String msgid) 
    {
        this.msgid = msgid;
    }

    public String getMsgid() 
    {
        return msgid;
    }
    public void setSendtimetype(String sendtimetype) 
    {
        this.sendtimetype = sendtimetype;
    }

    public String getSendtimetype() 
    {
        return sendtimetype;
    }
    public void setSendtime(Date sendtime) 
    {
        this.sendtime = sendtime;
    }

    public Date getSendtime() 
    {
        return sendtime;
    }
    public void setSendnum(Long sendnum) 
    {
        this.sendnum = sendnum;
    }

    public Long getSendnum() 
    {
        return sendnum;
    }
    public void setSuccnum(Long succnum) 
    {
        this.succnum = succnum;
    }

    public Long getSuccnum() 
    {
        return succnum;
    }
    public void setModifyemp(String modifyemp) 
    {
        this.modifyemp = modifyemp;
    }

    public String getModifyemp() 
    {
        return modifyemp;
    }
    public void setModifytime(Date modifytime) 
    {
        this.modifytime = modifytime;
    }

    public Date getModifytime() 
    {
        return modifytime;
    }
    public void setModifyorg(String modifyorg) 
    {
        this.modifyorg = modifyorg;
    }

    public String getModifyorg() 
    {
        return modifyorg;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getRuleName() {
        return ruleName;
    }

    public void setRuleName(String ruleName) {
        this.ruleName = ruleName;
    }

    public String getMsgtype() {
        return msgtype;
    }

    public void setMsgtype(String msgtype) {
        this.msgtype = msgtype;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("msgname", getMsgname())
            .append("crowdid", getCrowdid())
            .append("msgid", getMsgid())
            .append("sendtimetype", getSendtimetype())
            .append("sendtime", getSendtime())
            .append("sendnum", getSendnum())
            .append("succnum", getSuccnum())
            .append("modifyemp", getModifyemp())
            .append("modifytime", getModifytime())
            .append("modifyorg", getModifyorg())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
